package org.easy.socket.server.config;

/**
 * @Description:
 * @Author: wxl
 * @CreateTime: 2023/1/16 15:15
 */
public class ServerConfig {

    private String model;

    private String host;

    private Integer port;
    /**
     * 权重 如果没有配置，则就会给定默认值，该权重只有从才有
     */
    private int weight;

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "ServerConfig{" +
                "model='" + model + '\'' +
                ", host='" + host + '\'' +
                ", port=" + port +
                ", weight=" + weight +
                '}';
    }

}
